<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Rubro
 *
 * @author home
 */
class Deuda implements InterfazDatos
{
    private $codigo;
    private $rubro;
    private $alumno;
    private $saldo;
    private $facturada;
    private $detalle;
    
    function __construct($codigo, $rubro, $alumno, $saldo, $facturada, $detalle) {
        $this->codigo = $codigo;
        $this->rubro = $rubro;
        $this->alumno = $alumno;
        $this->saldo = $saldo;
        $this->facturada = $facturada;
        $this->detalle = $detalle;
    }

    
    public function getDatos() 
    {
        $datos[0][0]="codigodeuda";$datos[0][1]=$this->codigo;
        $datos[1][0]="codigorubro";$datos[1][1]=$this->rubro;
        $datos[2][0]="codigoalumno";$datos[2][1]=$this->alumno;
        $datos[3][0]="saldodeuda";$datos[3][1]=$this->saldo;
        $datos[4][0]="deudafacturada";$datos[4][1]=$this->facturada;
        $datos[5][0]="detalledeuda";$datos[5][1]=$this->detalle;
        return $datos;
    }

    public function getTabla() {
        return "deuda";
    }    //put your code here
}

?>
